<extend name="Public/base"/>

<block name="body">
    <div class="am-cf am-u-md-12 header-title">
        <h2>新增用户</h2>
    </div>
    <div class="am-cf am-u-md-12 am-margin-top">
        <form action="{:U()}" method="post" class="am-form am-form-horizontal">
            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">用户名<span class="am-form-help">（用户名会作为默认的昵称）</span></label>
                <div class="am-u-sm-10">
                    <input type="text" class="text input-large" name="username" value="">
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">密码<span class="am-form-help">（用户密码不能少于6位）</span></label>
                <div class="am-u-sm-10">
                    <input type="password" class="text input-large" name="password" value="">
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">确认密码</label>
                <div class="am-u-sm-10">
                    <input type="password" class="text input-large" name="repassword" value="">
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">邮箱<span class="am-form-help">（用户邮箱，用于找回密码等安全操作）</span></label>
                <div class="am-u-sm-10">
                    <input type="text" class="text input-large" name="email" value="">
                </div>
            </div>
            <div class="am-form-group">
                <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="am-form-horizontal">确 定</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('User/index')}');
    </script>
</block>
